<%@  Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SubsidyApp.Controllers.AddressFormViewModel>" %>
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<% using (Html.BeginForm()) { %>
<fieldset>
    <div id="">
        <p>
            <label for="address_title">
                Address Title:</label>
            <%= Html.TextBox("address_title", Model.other_dist_address.address_title)%>
            <%= Html.ValidationMessage("address_title", "*")%>
        </p>
        <p>
            <label for="address_adr">
                Address:</label>
            <%= Html.TextBox("address_adr", Model.other_dist_address.address_adr)%>
            <%= Html.ValidationMessage("address_adr", "*")%>
        </p>
        <p>
            <label for="dist_id">
                Dist:</label>
            <%= Html.DropDownList("dist_id", Model.Dists, Model.other_dist_address.dist_id)%>
            <%= Html.ValidationMessage("dist_id", "*")%>
        </p>
        <p>
            <label for="address_boss">
                Boss:</label>
            <%= Html.TextArea("address_boss", Model.other_dist_address.address_boss)%>
            <%= Html.ValidationMessage("address_boss", "*")%>
        </p>
        <p>
            <label for="address_phone">
                Phones:</label>
            <%= Html.TextArea("address_phone", Model.other_dist_address.address_phone)%>
            <%= Html.ValidationMessage("address_phone", "*")%>
        </p>
        <p>
            <label for="address_latitude">
                Latitude:</label>
            <%= Html.TextBox("address_latitude", Model.other_dist_address.address_latitude)%>
            <%= Html.ValidationMessage("address_latitude", "*")%>
        </p>
        <p>
            <label for="address_longitude">
                Longitude:</label>
            <%= Html.TextBox("address_longitude", Model.other_dist_address.address_longitude)%>
            <%= Html.ValidationMessage("address_longitude", "*")%>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </div>
</fieldset>
<% } %>
<a href="javascript:history.back();">[back]</a>
